package com.example.coursehub.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;
import java.time.Instant; // 导入 Instant 类

@Getter
@Setter
@Entity
@Table(name = "course")
public class Course {
    @Id
    @Column(name = "course_id", nullable = false, length = 100)
    private String courseId;

    @Column(name = "course_name", nullable = false, length = 100)
    private String courseName;

    // 将 course 改为 courseDescription
    @Column(name = "course", length = 1000) // 增加长度以适应介绍内容
    private String course;

    @Column(name = "teaching_goal", length = 200)
    private String teachingGoal;

    @Column(name = "examination_method", nullable = false, length = 100)
    private String examinationMethod;

}
